package com.tianyadu.order.controller;

import com.tianyadu.order.config.GirlConfig;
import com.tianyadu.order.domain.OrderDetail;
import com.tianyadu.order.repository.OrderDetailRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @FileName: GirlController
 * @Description:
 * @author: xueyj
 * @create: 2018-11-23 17:19
 */
@RestController
public class GirlController {

    @Autowired
    private GirlConfig girlConfig;

    @GetMapping("/girl/print")
    public String print(){
        return "name: " + girlConfig.getName() + "，age: " + girlConfig.getAge();
    }
}